<template>
  <div>
      {{sex?'男':'女'}}
      <button @click="handleChangeSex">切换</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
        sex:true
    }
  },

  created () {

  },

  methods: {
      handleChangeSex(){
          this.sex=!this.sex
      }
  }
}
</script>

<style scoped lang='less'>

</style>
